package xyz.lwm.lazycat.web.settings;

import lombok.Data;
import xyz.lwm.lazycat.annotation.SettingPrefix;

/**
 * 日志配置
 *
 * @author lwm
 */
@Data
@SettingPrefix(prefix = "logging")
public class LoggingSetting {

    // 日志级别: trace, debug, info
    private String level;

    public boolean isTraceEnabled() {
        return "trace".equalsIgnoreCase(level);
    }

    public boolean isDebugEnabled() {
        return "debug".equalsIgnoreCase(level);
    }

    public boolean isInfoEnabled() {
        return "info".equalsIgnoreCase(level);
    }

}